{
  "properties" : { },
  "id" : "43858293712240c88dcfea9a6f9da437",
  "script" : null,
  "groupId" : "349cc5d718464a5589e14a193216b23d",
  "name" : "新增故障知识库",
  "createTime" : 1727070977767,
  "updateTime" : 1726643931804,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "save",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\"title\":\"22122\",\"sort\":0,\"context\":\"%3Cp%3E222%3C%2Fp%3E\",\"solve\":\"%3Cp%3E222%3C%2Fp%3E\",\"alarmLevel\":\"严重\",\"knowledgeTypeId\":\"1\"}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 500,\n    \"success\": false,\n    \"data\": {},\n    \"msg\": \"系统维护中，请稍后重试。\"\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  }
}
================================
// sql 语法
import  java.net.URLDecoder;

       
            Strting context= URLDecoder.decode(body.context, "utf-8");
             Strting solve=URLDecoder.decode(body.solve,"utf-8");
return db.insert("""
    insert into ndmp_knowledge_data(alarm_level,context,knowledge_type_id,solve,sort,title) 
    values (#{body.alarmLevel}, #{context},#{body.knowledgeTypeId},#{solve}, #{body.sort},#{body.title})
""", 'id')

// db模块语法
// return db.table('ndmp_knowledge_data')
//     .save({body})